import { MenuItem } from "@/scripts/dataTypes";
import { defineAsyncComponent, ref, shallowRef } from "vue";
import featureEdit from '@/pages/cimrtsView/FeatureEdit.vue';
import featureSelect from '@/pages/cimrtsView/FeatureSelect.vue';

import batchPlace from '@/pages/cimrtsView/BatchPlace.vue';
import virtualLayer from '@/pages/cimrtsView/VirtualLayer.vue';
import waterMend from '@/pages/cimrtsView/WaterMend.vue';
import materailsManager from '@/pages/cimrtsView/MaterailsManager.vue';



export const cimrtsMenuList = ref<MenuItem[]>([
    
    {
        id: "location",
        name: "定位",
        status: "none",
        icon: new URL('../../../assets/cimrts/baseInfo/location.png', import.meta.url).href,
        hoverIcon: new URL('../../../assets/cimrts/baseInfo/location_hover.png', import.meta.url).href,
    },
    {
        id: "flyToFeature",
        name: "飞行至随机要素",
        status: "none",
        icon: new URL('../../../assets/cimrts/baseInfo/flyToFeature.png', import.meta.url).href,
        hoverIcon: new URL('../../../assets/cimrts/baseInfo/flyToFeature_hover.png', import.meta.url).href,
    },
    {
        id: "refresh",
        name: "刷新",
        status: "none",
        icon: new URL('../../../assets/cimrts/baseInfo/refresh.png', import.meta.url).href,
        hoverIcon: new URL('../../../assets/cimrts/baseInfo/refresh_hover.png', import.meta.url).href,
    },
    {
        id: "featureEdit",
        name: "拾取要素",
        com: shallowRef(featureEdit),
        status: "none",
        icon: new URL('../../../assets/cimrts/baseInfo/edit.png', import.meta.url).href,
        activeIcon: new URL('../../../assets/cimrts/baseInfo/edit_actived.png', import.meta.url).href,
        hoverIcon: new URL('../../../assets/cimrts/baseInfo/edit_hover.png', import.meta.url).href,
        isOnly: true,
    },
       {
        id: "featureSelect",
        name: "框选要素",
        com: shallowRef(featureSelect),
        status: "none",
        icon: new URL('../../../assets/cimrts/baseInfo/select.png', import.meta.url).href,
        activeIcon: new URL('../../../assets/cimrts/baseInfo/select_actived.png', import.meta.url).href,
        hoverIcon: new URL('../../../assets/cimrts/baseInfo/select_hover.png', import.meta.url).href,
        isOnly: true,
    },
    {
        id: "batchPlace",
        name: "批量放置",
        com: shallowRef(batchPlace),
        status: "none",
        icon: new URL('../../../assets/cimrts/baseInfo/batch.png', import.meta.url).href,
        activeIcon: new URL('../../../assets/cimrts/baseInfo/batch_actived.png', import.meta.url).href,
        hoverIcon: new URL('../../../assets/cimrts/baseInfo/batch_hover.png', import.meta.url).href,
        isOnly: true,
    },
    {
        id: "waterMend",
        name: "绘制对象",
        com: shallowRef(waterMend),
        status: "none",
        icon: new URL('../../../assets/cimrts/baseInfo/mend.png', import.meta.url).href,
        activeIcon: new URL('../../../assets/cimrts/baseInfo/mend_actived.png', import.meta.url).href,
        hoverIcon: new URL('../../../assets/cimrts/baseInfo/mend_hover.png', import.meta.url).href,
        isOnly: true,
    },
    {
        id: "virtualLayer",
        name: "虚拟图层",
        com: shallowRef(virtualLayer),
        status: "none",
        icon: new URL('../../../assets/cimrts/baseInfo/layer.png', import.meta.url).href,
        activeIcon: new URL('../../../assets/cimrts/baseInfo/layer_actived.png', import.meta.url).href,
        hoverIcon: new URL('../../../assets/cimrts/baseInfo/layer_hover.png', import.meta.url).href,
        isOnly: true,
    },
       {
        id: "materailsMenuList",
        name: "材质管理",
        com: shallowRef(materailsManager),
        status: "none",
        icon: new URL('../../../assets/cimrts/baseInfo/materails.png', import.meta.url).href,
        activeIcon: new URL('../../../assets/cimrts/baseInfo/materails_actived.png', import.meta.url).href,
        hoverIcon: new URL('../../../assets/cimrts/baseInfo/materails_hover.png', import.meta.url).href,
        isOnly: true,
    },
])

